<%--
  Created by IntelliJ IDEA.
  User: wenze-zero
  Date: 2021-06-03-003
  Time: 上午 10:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        String str=null;
        Cookie[] cookies= request.getCookies();
        for (int i=0;i<cookies.length;i++){
            if (cookies[i].getName().equals("number")){
                str=cookies[i].getValue();
                break;
            }
        }
        int num=Integer.parseInt(str);
    %>
    该数字的立方为：<%=num*num*num%>
    <hr>
</body>
</html>
